import {Text, View} from "react-native";
import React from "react";
import {useNavigation} from "@react-navigation/native";

function Test({ route }): React.JSX.Element {
    const navigation = useNavigation();
    const { name, age } = route.params;
    return (
        <View>
            <Text>name: {name}</Text>
            <Text>age: {age}</Text>
        </View>
    )
}

export default Test
